package com.itheima.app;

import com.itheima.pojo.Student;
import org.springframework.context.support.ClassPathXmlApplicationContext;

public class LifeText {
    public static void main(String[] args) {
        ClassPathXmlApplicationContext app = new ClassPathXmlApplicationContext("application-life.xml");
        Student student = (Student) app.getBean("student");
        System.out.println("student的id为"+student.getId());
        app.close();


    }
}
